#include "ConstBoolNode.h"

using namespace std;

namespace CExpression
{
	void ConstBoolNode::Eval(ExecuteContext &context)
	{
		context.SetGlobalTempBoolean(this->boolValue);
		context.SetTempResultType(ExecuteRunTimeType::Boolean);
	}

	shared_ptr<Node> ConstBoolNode::Clone(Expression &parent)
	{
		shared_ptr<Node> result(new ConstBoolNode(this->boolValue));
		return result;
	}
}